home *** CD-ROM | disk | FTP | other *** search
/ Just Call Me Internet / Just Call Me Internet.iso / prog / atari / c / snz128s / src / reindex.h < prev    next >
C/C++ Source or Header  |  1994-05-23  |  3KB  |  76 lines

  1. /***************************************************************************
  2.  *                                                                         *
  3.  * REINDEX.H - Reindex an snews news group article file                    *
  4.  *                                                                         *
  5.  *    Written by M.S. Muir September 1992                                  *
  6.  *                                                                         *
  7.  *                                                                         *
  8.  *    EMAIL: malcolm@muir.demon.co.uk                                      *
  9.  *                                                                         *
  10.  *  Released into the public domain in the hope that someone may find it   *
  11.  *  to be of use.                                                          *
  12.  *                                                                         *
  13.  *  Note however that there is NO WARRANTY WHATSOEVER not even an implied  *
  14.  *  warranty of merchantability or fitness for any particular purpose.     *
  15.  *                                                                         *
  16.  *  This programme may be freely copied and/or modified and/or distributed *
  17.  *  under the terms of the GNI General Public Licence, version 1 as        *
  18.  *  published by the Free Software Foundation.                             *
  19.  *                                                                         *
  20.  ***************************************************************************/
  21.  
  22. /*
  23.  * Source Code Control...
  24.  *
  25.  * $Id: REINDEX.H,v 1.2 1994/02/05 18:45:50 gbj Exp user $
  26.  *
  27.  */
  28.  
  29. /*---------------------------- includes ------------------------------------*/
  30.  
  31. #include <stdio.h>
  32. #include <stdlib.h>
  33. #include <conio.h>
  34. #include <ctype.h>
  35. #include <string.h>
  36.  
  37. /*----------------------------- defines ------------------------------------*/
  38.  
  39. #define PAGE_LENGTH         (scr_rows - 6)
  40. #define PAGE_HEADER         4
  41.  
  42. #define ENTER               0x0d
  43. #define ESCAPE              0x1b
  44. #define TAB                 0x09
  45. #define BACKSP              0x08
  46.  
  47. #define EX_DONE             1
  48. #define EX_QUIT             2
  49. #define EX_SAVE             3
  50. #define EX_NEXT             4
  51. #define EX_PREV             5
  52. #define EX_NEXT_UNREAD      6
  53. #define EX_ROT13            7
  54. #define EX_DUMMY            8
  55. #define    EX_NOTREAD        128
  56.  
  57. #define  UP_ARR             'H'
  58. #define  DN_ARR             'P'
  59. #define  LT_ARR             'K'
  60. #define  RT_ARR             'M'
  61. #define  PGUP               'I'
  62. #define  PGDN               'Q'
  63. #define  HOME               'G'
  64. #define  END                'O'
  65.  
  66.  
  67. /*---------------------------- prototypes ----------------------------------*/
  68.  
  69. void            do_index(ACTIVE *);
  70. void            do_active(ACTIVE *);
  71. void            summary(ACTIVE *);
  72. char           *select_group(ACTIVE *head, ACTIVE *current);
  73. void            show_groups(ACTIVE **top, ACTIVE *this_group, int force, ACTIVE *head);
  74. void            command(char* msg);
  75.  
  76.